package dao

import (
	"time"
)

// 这是 LiPointsGoodsCategory 的全局公开dao对象
var LiPointsGoodsCategoryDao = liPointsGoodsCategoryDao{}

// 这是 li_points_goods_category表 的实体类
type LiPointsGoodsCategory struct {
	Id         int       `json:"id" form:"id" v:"id"`                                             // ID
	CreateBy   string    `json:"create_by" form:"create_by" v:"create_by"`                        // 创建者
	CreateTime time.Time `json:"create_time" form:"create_time" v:"create_time"`                  // 创建时间
	DeleteFlag bool      `json:"delete_flag" form:"delete_flag" v:"delete_flag" gm:"delete_flag"` // 删除标志 true/false 删除/未删除
	UpdateBy   string    `json:"update_by" form:"update_by" v:"update_by"`                        // 更新者
	UpdateTime time.Time `json:"update_time" form:"update_time" v:"update_time"`                  // 更新时间
	Level      int       `json:"level" form:"level" v:"level"`                                    // 层级
	Name       string    `json:"name" form:"name" v:"name"`                                       // 分类名称
	ParentId   string    `json:"parent_id" form:"parent_id" v:"parent_id"`                        // 父ID
	SortOrder  float64   `json:"sort_order" form:"sort_order" v:"sort_order"`                     // 排序值

}

// 注意:这是 LiPointsGoodsCategory 的私有dao对象
type liPointsGoodsCategoryDao struct {
	Insert func(arg LiPointsGoodsCategory) int                   //插入一条记录
	Update func(arg LiPointsGoodsCategory) int                   //更新一条记录
	Delete func(arg LiPointsGoodsCategory) int                   //删除一条记录
	Select func(arg LiPointsGoodsCategory) LiPointsGoodsCategory //获取一条记录
}
